package com.example.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import com.example.demo.processor.MyPageProcessor;
import com.example.demo.util.util;

import us.codecraft.webmagic.Spider;

@SpringBootApplication
public class HzpApplication {

	public static void main(String[] args) {
		SpringApplication.run(HzpApplication.class, args);
		
		Spider.create(new MyPageProcessor())
			.addRequest(util.getRequest())
			.run();
	}
}
